/*
 * @Description:
 * @Author: 胡涛
 * @Date: 2023-09-11 14:40:46
 * @LastEditors: 胡涛
 * @LastEditTime: 2023-09-19 22:15:39
 */
import { ISideMenuItem } from "@/types/menu";
import { DesktopOutlined } from "@ant-design/icons-vue";
import { h } from "vue";
/**
 * 本地菜单配置
 */
export const localMenus: Array<ISideMenuItem> = [
  {
    key: "jcpz",
    label: "基础配置",
    icon: h(DesktopOutlined),
    children: [
      {
        key: "pzfl",
        label: "配置分类",
        icon: h(DesktopOutlined),
        url: "/system/config/category",
      },
      {
        key: "pzdy",
        label: "配置定义",
        icon: h(DesktopOutlined),
        url: "/system/config/define",
      },
      {
        key: "sxtpz",
        label: "系统配置",
        icon: h(DesktopOutlined),
        url: "/system/config/setting",
      },
      {
        key: "sjzd",
        label: "数据字典",
        icon: h(DesktopOutlined),
        url: "/system/dictionary",
      },
    ],
  },

  {
    key: "yhtx",
    label: "用户权限",
    icon: h(DesktopOutlined),
    children: [
      {
        key: "jsgl",
        label: "角色管理",
        url: "/system/role",
        icon: h(DesktopOutlined),
      },
      {
        key: "yhgl",
        label: "用户管理",
        url: "/system/user",
        icon: h(DesktopOutlined),
      },
      {
        key: "cdqxgl",
        label: "菜单权限管理",
        url: "/system/menu",
        icon: h(DesktopOutlined),
      },
    ],
  },
  {
    key: "gzjg",
    label: "组织架构",
    icon: h(DesktopOutlined),
    children: [
      {
        key: "xzqh",
        label: "行政区划",
        icon: h(DesktopOutlined),
        url: "/system/region",
      },
      {
        key: "qylb",
        label: "企业类别",
        icon: h(DesktopOutlined),
      },
      {
        key: "qygl",
        label: "企业管理",
        icon: h(DesktopOutlined),
      },
    ],
  },
  {
    key: "ywpz",
    label: "业务配置",
    icon: h(DesktopOutlined),
    children: [
      {
        key: "gsgl",
        label: "公式管理",
        icon: h(DesktopOutlined),
      },
      {
        key: "xmgl",
        label: "项目配置",
        icon: h(DesktopOutlined),
      },
      {
        key: "mgl",
        label: "文档模板管理",
        icon: h(DesktopOutlined),
      },
    ],
  },
];
